project=bits
outdir=build

target=$(outdir)/$(project)
source = main.c

$(target):$(source)
	mkdir -p $(outdir)
	gcc -g -o $(target) $(source)
	make run
run:
	$(target)